package Test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;

public class TT3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        HashMap<Integer,ArrayList<Integer>> map = new HashMap<>();
        ArrayList<int[]> list = new ArrayList<>(n-1);
        for (int i = 0; i < n-1; i++) {
            int k = sc.nextInt();
            int m = sc.nextInt();
            int[] item = new int[]{k, m};
            list.add(item);
        }
    }
    public static int test(int res,ArrayList<int[]> list){
        return 0;
    }
}
